#pragma once
#include <iostream>
#include <functional>
class Task
{
    public:
    using func_t = functional<int(int,int)>;
    // typedef functional<int(int,int)> func_t;
public:
    Task()
    {
    }
    Task(int x, int y,func_t func) : _x(x), _y(y)._callback(func)
    {
    }

    int operator()()
    {
        int result = _callback(_x,_y);
        return result;
    }

private:
    int _x;
    int _y;
    func_t _callback;
};